<template>
	<view>
		<cards title="门店展示" :sotreLsit="sotreLsit"></cards>
	</view>
</template>

<script>
	import cards from '@/components/cards.vue'
	export default {
		components:{
			cards
		},
		data() {
			return {
				sotreLsit:[]
			}
		},
		onLoad(option) {
			this.init(option.id)
		},
		methods: {
			init(id){
				uni.request({
					url: 'https://wechat.lccmart.com/ygy/api/wechatapi/get_shop',
					data:{
						cid: id
					},
					success: (res) => {
						this.sotreLsit = res.data.data;
						console.log(res.data.data)
					}
				})
			}
		}
	}
</script>

<style>

</style>
